package com.core.website;

import cn.easyes.starter.register.EsMapperScan;
import com.core.website.util.SpringUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan("com.core.website.mapper")
@EsMapperScan("com.core.website.esmapper")
//@EnableCaching
@EnableScheduling
public class WebsiteApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(WebsiteApplication.class, args);
        SpringUtil.setApplicationContext(run);

    }

}
